package com.yanqu.road.entity.log.cross.hsisland;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

@FieldTypeAnnotation(tableName = "t_l_ck_hs_island_energy", desc = "海神岛-体力日志", autoSave = true, uploadCk = true, isCross = true)
public class LogCrossHsIslandEnergy extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "分组ID", isIndex = true)
    private int groupId;

    @FieldTypeAnnotation(desc = "商会ID")
    private String unionId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "类型,1.探索消耗,2.攻击消耗,3.开宝箱消耗,4.遗迹藏宝消耗,5.自然恢复,6.道具恢复")
    private int type;

    @FieldTypeAnnotation(desc = "变更值")
    private int changeEnergy;

    @FieldTypeAnnotation(desc = "变更后体力")
    private int energy;

    public LogCrossHsIslandEnergy(int activityId, int groupId, String unionId, long userId, int type, int changeEnergy, int energy) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.unionId = unionId;
        this.userId = userId;
        this.type = type;
        this.changeEnergy = changeEnergy;
        this.energy = energy;
    }

    @Override
    public long getUserId() {
        return userId;
    }

}
